package jee.boot.common.basic.result;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * 快速构造map对象数据
 */
public class MapData {
    private Map<String, Object> data = Maps.newHashMap();

    public static MapData instance() {
        return new MapData();
    }

    public MapData put(String key, Object value) {
        data.put(key, value);
        return this;
    }

    public Map<String, Object> data() {
        return data;
    }
}
